import { http } from "../http";

const baseUrl = "/api/dms/device-types";

interface AddType {
  name: string;
  id?: string;
}
export const addOrUpdateAPI = (params: AddType) => {
  return http.post(`${baseUrl}/save`, params);
};

export const deleteAPI = (id: string) => {
  return http.delete(`${baseUrl}/${id}`);
};
